package edu.neusoft.kongfanfei317.yuejian1.model;

import java.util.List;

import edu.neusoft.kongfanfei317.yuejian1.bean.CollectListBean;
import edu.neusoft.kongfanfei317.yuejian1.iface.AllCollectIface;
import edu.neusoft.kongfanfei317.yuejian1.listener.ListListener;
import edu.neusoft.kongfanfei317.yuejian1.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class AllCollectModel extends RetrofitBaseModel implements AllCollectIface<CollectListBean> {
    private Retrofit retrofit;
    Service service;
    public AllCollectModel(){
        retrofit = getRetrofit();
    }
    @Override
    public void getCollectMessage(String user_id, String flag, ListListener<CollectListBean> listListener) {
        service = getService();
        Call<List<CollectListBean>> call = service.getcollect(user_id, flag);

        callenqueueList(call,listListener);
    }
}
